<?php

namespace App\Listeners;

use App\Helpers\Code;
use App\Models\User;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;


class SystemStoreListener
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  object  $event
     * @return void
     */
    public function handle($event)
    {
        //
        $uid= json_encode($event->systemStore->id);
        $data= (new  User())->find($uid);
        $phone=$data['phone'];
        (new Code())->getCode("18538241710","您提交的信息已经审核,请及时查看信息","yuanlibi","3c730c928aeb4ab0bf38aca91a1c3822");
        \Illuminate\Support\Facades\Log::info($phone);
    }
}
